import http from '@/utils/http';

const supplier = {
  //获取所有供应商
  getSuppliers() {
    let url = '/Supplier/GetSuppliers';
    return http.get(url);
  },
  //供应商视图
  query(params: any) {
    let url = '/Supplier/Query';
    return http.post(url, params);
  },
  //供应商详情
  detail(id: Number) {
    let url = '/Supplier/Detail';
    let params = { id: id };
    return http.get(url, params);
  },
  //供应商保存
  save(role: Object) {
    let url = '/Supplier/Save';
    return http.post(url, role);
  },
};
export default supplier;
